package com.itcast.demo.thread;

public class Run3 {
    public static void main(String[] args) throws InterruptedException {
            MyThread thread = new MyThread();
            thread.start();
//            Thread.sleep(10);
            thread.interrupt();
            System.out.println("是否停止1？=" + thread.isInterrupted());//true
            // ......从源码注释中可以看出，isInterrupted()方法不会清除中断状态。
    }
}